import request from '@/utils/request'

// 查询营销活动列表
export function listActivity(query) {
  return request({
    url: '/activityUser/list',
    method: 'get',
    params: query
  })
}

//查询产于用户详情
export function listUser(id) {
  return request({
    url: '/activityUser/' + id,
    method: 'get',
  })
}

//查询奖品详情
export function listPrize(userId, activityId) {
  return request({
    url: 'activityUser/prize/' + userId + '/' + activityId,
    method: 'get',
  })
}
